home *** CD-ROM | disk | FTP | other *** search
/ Champak 103 / Vol 103.iso / games / squirrel.swf / scripts / DefineSprite_86 / frame_1 / DoAction.as
Encoding:
Text File  |  2010-03-13  |  764 b   |  27 lines

  1. brdID = root.boardID;
  2. playerScore = root.score;
  3. playerName = "Arcade";
  4. function()
  5. {
  6.    playerName = "";
  7. }
  8. "onSetFocus";
  9. nameField;
  10. goBack = function()
  11. {
  12.    stopAllSounds();
  13.    root.gotoAndStop("menu");
  14. };
  15. saveScore = function()
  16. {
  17.    if(playerName == "type your name here" || playerName == "" || playerName == "fuck" || playerName == "fuck you" || playerName == "shit" || playerName == "shithole" || playerName == "ass" || playerName == "gay" || playerName == "asshole" || playerName == "chuj" || playerName == "kurwa" || playerName == "cipa" || playerName == "pizda")
  18.    {
  19.       reminder.play();
  20.    }
  21.    else
  22.    {
  23.       mochi.MochiScores.showLeaderboard({boardID:brdID,score:playerScore,name:playerName});
  24.       _visible = false;
  25.    }
  26. };
  27.